package com.hj.service;

import com.hj.domain.User;
import org.springframework.stereotype.Component;

@Component  //一定要注入Spring中
public class UserServiceFallBack implements UserService {
    @Override
    public User findUserById(Integer id) {
        User user = new User();
        user.setUser_name("用户不存在");
        return user;
    }
}
